<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 引入MD5依赖 -->
    <script src="https://cdn.bootcss.com/blueimp-md5/2.12.0/js/md5.min.js"></script>
    <script>

        // base64加密方法 
        let str = 'abc123';
        let jia = window.btoa(str)
        console.log('转换Base64后：',jia)
        let code = window.atob(jia); 
        console.log('解密',code)

        // MD5加密方法
        let newStr = md5(str);
        console.log('MD5加密：',newStr)

    </script>
</body>
</html>